package edu.mis.core.conf;

import com.jfinal.config.Routes;


import edu.mis.modules.blog.BlogController;
import edu.mis.modules.cart.CartController;
import edu.mis.modules.chart.ChartController;
import edu.mis.modules.commodity.CommodityController;
import edu.mis.modules.index.IndexController;
import edu.mis.modules.orderDetail.OrderDetailController;
import edu.mis.modules.orderList.OrderListController;
import edu.mis.modules.role.RoleController;
import edu.mis.modules.seat.SeatController;
import edu.mis.modules.transaction.TransactionController;
import edu.mis.modules.type.TypeController;
import edu.mis.modules.user.UserController;
import edu.mis.modules.customer.CustomerController;

/**
 * 后台路由
 *
 */
public class AdminRoutes extends Routes{

	@Override
	public void config() {
		add("/", IndexController.class, "/admin");	// 第三个参数为该Controller的视图存放路径，省略则与第一个参数相同
		add("/blog", BlogController.class,"/admin/blog");	
		add("/user", UserController.class,"/admin/user");
		add("/role", RoleController.class,"/admin/role");	
		add("/customer", CustomerController.class,"/admin/customer");
        add("/type", TypeController.class,"/admin/type");
        add("/commodity", CommodityController.class,"/admin/commodity");
        add("/orderList", OrderListController.class, "/admin/orderList");
		add("/orderDetail", OrderDetailController.class, "/admin/orderDetail");
		add("/cart", CartController.class, "/admin/cart");
		add("/seat", SeatController.class, "/admin/seat");
		add("/transaction", TransactionController.class, "/admin/transaction");
		add("/chart",ChartController.class, "/admin/chart");
	}
}


